//
// Created by lingzhitech on 25-9-22.
//

#ifndef BULK_QUOTE_H
#define BULK_QUOTE_H
#include "Quote.h"


class BulkQuote : public Quote {
public:
    BulkQuote() = default;

    BulkQuote(const std::string &bookNumber, double price,
               std::size_t minimumQuantity, double discount) : Quote(bookNumber, price), minimumQuantity_(minimumQuantity), discount_(discount) {
    }

    double netPrice(std::size_t) const override;
    void debug() const;
private:
    std::size_t minimumQuantity_ = 0; // minimum purchase for the discount to apply
    double discount_ = 0.0; // fractional discount to apply
};


#endif //BULK_QUOTE_H
